import Cookies from 'js-cookie'

const TokenKey = 'vue_admin_template_token'
const timeKey = 'vue_timestamp_token'
// 获得 登录时的 时间搓
export function getTiemstamp() {
  return Cookies.get(timeKey)
}
// 储存 登录时的 时间搓
export function setTiemstamp() {
  return Cookies.set(timeKey, Date.now())
}
export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
